package com.xy.improve;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 19:20
 * @description
 */
public class Client {
    public static void main(String[] args) {
        HouseDirector houseDirector = new HouseDirector(new CommonBuilder());
        House house = houseDirector.constructHouse();
        System.out.println("house = " + house);
        houseDirector.setHouseBuilder(new HighBuilding());
        House house1 = houseDirector.constructHouse();
        System.out.println("house1 = " + house1);
    }
}
